<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title><%= @page_title || APP_CONFIG[:site_name] %></title>
		<meta http-equiv="content-type" content="text/xhtml; charset=utf-8" />
		<meta http-equiv="imagetoolbar" content="no" />
		<meta name="distribution" content="all" />
		<meta name="robots" content="all" />	
		<meta name="resource-type" content="document" />
		<meta name="MSSmartTagsPreventParsing" content="true" />
		<%= stylesheet_link_tag 'base' %>
    <%= javascript_include_tag 'jquery', 'ui/ui.core.min.js', 'ui/ui.draggable.min.js', 'ui/ui.droppable.min.js' %>
    <script type="text/javascript">var $j = jQuery.noConflict();</script>
		<%= javascript_include_tag :defaults %>
    <%= javascript_tag "window.AUTH_TOKEN = '#{form_authenticity_token}';" %>
	</head>
	<body>
		<div id="container">
			<div id="header">
				<ul>
					<% if logged_in? %>
            <li>Logged in as <%= current_user.login %></li>
					<li><%= link_to 'Logout', logout_path %></li>
					<% else %>
					<li><%= link_to 'Login', login_path %></li>
					<li><%= link_to 'Signup', signup_path %></li>
					<% end %>
				</ul>
			</div>
			<div id="content">
				<%= flash_messages %>
				<%= yield :layout %>
			</div>
		</div>
	</body>
</html>
